package com.example.plan.model.dto.user;


import com.example.plan.common.PageRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ASUS
 * @version 1.0
 * @description: TODO
 * @date 2025/3/5 09:52
 */
@Data
public class UserQueryRequest extends PageRequest implements Serializable {

    private static final long serialVersionUID = 3286581474328176939L;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", required = true)
    private Long user_id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;

    /**
     * 头像URL
     */
    @ApiModelProperty(value = "头像URL")
    private String avatar_url;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "注册时间")
    private Date created_at;

    /**
     * 最后更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最后更新时间")
    private Date updated_at;

    /**
     * 性别：0删除 1未删除
     */
    @ApiModelProperty(value = "性别：0删除 1未删除", required = true)
    private Integer isDeleted;
    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号", required = true)
    private String user_account;
}
